package drawPropertyCommands;

import java.awt.Stroke;

/**
 * this class is the application of the command pattern where it will be used to modify
 * the DrawProperties used by the turtle trails. This class will specifically modify the width aspect
 * of the DrawProperties while keeping the other parameters the same
 * @author KevinWang
 *
 */
public class WidthModifier extends StrokeModifier {
    private float width;
    public WidthModifier(Float width){
        this.width=width;
    }
    
    /**
     * Override the getWidth method of the StrokeModifier so that it will obtain all
     * the original attributes of the input stroke but modify the width property
     */
    @Override
    protected float getWidth(Stroke s){
        return width;
    }
}
